package com.spurdo.kuvapankki;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;

public class QvaDatabase {

	public static void createDB() throws Exception {

		Class.forName("org.sqlite.JDBC");
		Connection conn = DriverManager.getConnection("jdbc:sqlite:qva.db");
		Statement stat = conn.createStatement();

		stat.executeUpdate("drop table if exists relay;");
		stat.executeUpdate("create table qva (Time, Kommentti);");
	}

	public static void main(String[] args) {

		try {
			QvaDatabase.createDB();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
